package com.ssy.invoicing.order.bean.vo;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class OrderVo {

    private String orderNumber;
    private Date beginTime;
    private Date endTime;
    private String pname;
    private String pattern;
    private String suppliers;
    private String demandUnit;
    private String finalUnit;
    private int page;
    
    public String getOrderNumber() {
        return orderNumber;
    }
    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }
    public Date getBeginTime() {
        return beginTime;
    }
    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }
    public Date getEndTime() {
        return endTime;
    }
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
    
    public int getPage() {
        return page;
    }
    public void setPage(int page) {
        this.page = page;
    }
    
    public String getPname() {
        return pname;
    }
    
    public void setPname(String pname) {
        this.pname = pname;
    }
    
    public String getPattern() {
        return pattern;
    }
    
    public void setPattern(String pattern) {
        this.pattern = pattern;
    }
    
    public String getSuppliers() {
        return suppliers;
    }
    
    public void setSuppliers(String suppliers) {
        this.suppliers = suppliers;
    }
    
    public String getDemandUnit() {
        return demandUnit;
    }
    
    public void setDemandUnit(String demandUnit) {
        this.demandUnit = demandUnit;
    }
    
    public String getFinalUnit() {
        return finalUnit;
    }
    
    public void setFinalUnit(String finalUnit) {
        this.finalUnit = finalUnit;
    }
    /**
     * 初始化查询参数
     * @author suoyao.shen
     * @param vo
     * 查询参数对象
     * @return
     */
    public Map<String,Object> initParams() {
        Map<String,Object> params = new HashMap<String, Object>();
        params.put("orderNumber", orderNumber);
        params.put("pname", pname);
        params.put("pattern", pattern);
        params.put("suppliers", suppliers);
        params.put("demandUnit", demandUnit);
        params.put("finalUnit", finalUnit);
        params.put("beginTime", beginTime);
        params.put("endTime", endTime);
        return params;
    }
}
